<?php
// Admin
Breadcrumbs::register('admin.index', function($breadcrumbs)
{
    $breadcrumbs->push('后台', route('admin.index'));
});

	// Admin > Shop
	Breadcrumbs::register('admin.shops.index', function($breadcrumbs)
	{
	    $breadcrumbs->parent('admin.index');
	    $breadcrumbs->push('商店列表', route('admin.shops.index'));

	});
		// Admin > Shop > create
		Breadcrumbs::register('admin.shops.create', function($breadcrumbs)
		{
		    $breadcrumbs->parent('admin.shops.index');
		    $breadcrumbs->push('创建商店', route('admin.shops.create'));

		});
		// Admin > Shop > edit
		Breadcrumbs::register('admin.shops.edit', function($breadcrumbs)
		{
		    $breadcrumbs->parent('admin.shops.index');
		    $breadcrumbs->push('编辑商店', route('admin.shops.edit'));

		});
	// Admin > Attribute
	Breadcrumbs::register('admin.attribute.index', function($breadcrumbs)
	{
	    $breadcrumbs->parent('admin.index');
	    $breadcrumbs->push('属性列表', route('admin.attribute.index'));

	});
		// Admin > Attribute > create
		Breadcrumbs::register('admin.attribute.create', function($breadcrumbs)
		{
		    $breadcrumbs->parent('admin.attribute.index');
		    $breadcrumbs->push('创建属性', route('admin.attribute.create'));
		});	
		// Admin > Attribute > edit
		Breadcrumbs::register('admin.attribute.edit', function($breadcrumbs)
		{
		    $breadcrumbs->parent('admin.attribute.index');
		    $breadcrumbs->push('编辑属性', route('admin.attribute.edit'));
		});
	// Admin > Item
	Breadcrumbs::register('admin.item.index', function($breadcrumbs)
	{
	    $breadcrumbs->parent('admin.index');
	    $breadcrumbs->push('商品列表', route('admin.item.index'));
	});
		// Admin > Item > create
		Breadcrumbs::register('admin.item.create', function($breadcrumbs)
		{
		    $breadcrumbs->parent('admin.item.index');
		    $breadcrumbs->push('创建商品', route('admin.item.create'));
		});	
		// Admin > Item > edit
		Breadcrumbs::register('admin.item.edit', function($breadcrumbs)
		{
		    $breadcrumbs->parent('admin.item.index');
		    $breadcrumbs->push('编辑商品', route('admin.item.edit'));
		});

	// Admin > Category
	Breadcrumbs::register('admin.category.index', function($breadcrumbs)
	{
	    $breadcrumbs->parent('admin.index');
	    $breadcrumbs->push('分类列表', route('admin.category.index'));
	});
		// Admin > Category > create
		Breadcrumbs::register('admin.category.create', function($breadcrumbs)
		{
		    $breadcrumbs->parent('admin.category.index');
		    $breadcrumbs->push('创建分类', route('admin.category.create'));
		});	
		// Admin > Category > edit
		Breadcrumbs::register('admin.category.edit', function($breadcrumbs)
		{
		    $breadcrumbs->parent('admin.category.index');
		    $breadcrumbs->push('编辑分类', route('admin.category.edit'));
		});

	// 后台 > 账号管理
	Breadcrumbs::register('admin.user.index', function($breadcrumbs)
	{
	    $breadcrumbs->parent('admin.index');
	    $breadcrumbs->push('账号管理', route('admin.user.index'));

	});

		// 后台 > 账号管理
		Breadcrumbs::register('admin.user.create', function($breadcrumbs)
		{
		    $breadcrumbs->parent('admin.user.index');
		    $breadcrumbs->push('账号添加', route('admin.user.create'));

		});


	// 后台 > 角色管理
	Breadcrumbs::register('admin.role.index', function($breadcrumbs)
	{
	    $breadcrumbs->parent('admin.index');
	    $breadcrumbs->push('账号管理', route('admin.role.index'));

	});
	   // 后台 > 角色管理>添加角色
		Breadcrumbs::register('admin.role.create', function($breadcrumbs)
		{
		    $breadcrumbs->parent('admin.role.index');
		    $breadcrumbs->push('账号管理', route('admin.role.create'));

		});

	// 后台 > 权限规则管理
	Breadcrumbs::register('admin.permission.index', function($breadcrumbs)
	{
	    $breadcrumbs->parent('admin.index');
	    $breadcrumbs->push('权限规则管理', route('admin.permission.index'));

	});
		